import request from '@/utils/request'

// 查询新生信息列表
export function listNewstudent(query) {
  return request({
    url: '/Newstudent/Newstudent/list',
    method: 'get',
    params: query
  })
}

// 查询新生信息详细
export function getNewstudent(id) {
  return request({
    url: '/Newstudent/Newstudent/' + id,
    method: 'get'
  })
}

// 新增新生信息
export function addNewstudent(data) {
  return request({
    url: '/Newstudent/Newstudent',
    method: 'post',
    data: data
  })
}

// 修改新生信息
export function updateNewstudent(data) {
  return request({
    url: '/Newstudent/Newstudent',
    method: 'put',
    data: data
  })
}

// 删除新生信息
export function delNewstudent(id) {
  return request({
    url: '/Newstudent/Newstudent/' + id,
    method: 'delete'
  })
}
